package com.example.springrediswithjpasample;

import org.springframework.cache.annotation.Cacheable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
public class TestController {


    @Cacheable(cacheNames = {"test2"})
    @RequestMapping(value = {"test2"},method = {RequestMethod.GET})
    public String test(){

        return "嘎嘎嘎2";
    }

}
